import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import 'normalize.css'
import 'vue-awesome/icons'
import './config/menu-config.js'
import Icon from 'vue-awesome/components/Icon'

import App from './App'
import router from './router'
import axios from 'axios'
Vue.prototype.$http= axios

Vue.config.productionTip = false

axios.defaults.baseURL = 'http://localhost:8089'

Vue.use(ElementUI)
Vue.component('icon', Icon)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App },
  beforeCreate(){
    Vue.prototype.$bus = this
  }
})
